package com.wpf.test03;


public class demo02 {
    public static void main(String[] args) throws CloneNotSupportedException {
        User u1 = new User(1, "zhangsan", "wo666", new double[]{99.0, 99.5});
        User u2 = (User) u1.clone();
        System.out.println(u1);
//        System.out.println(u2);
        u1.setId(666);
        u1.getScores()[0] = 10;
//        u1.setScores();
        System.out.println(u1.getId() + " " + u1.getUsername() + " " + u1.getPassword() + " " + u1.getScores()[0]);
        System.out.println(u2.getId() + " " + u2.getUsername() + " " + u2.getPassword() + " " + u2.getScores()[0]);
        System.out.println(u1.getScores());
        System.out.println(u2.getScores());
    }
}
